<html>
 <head>
  <link href="./leetcode-problem.css" rel="stylesheet" type="text/css">
 </head>
 <body>
  <div class="question_difficulty">
   难度：Easy
  </div>
  <div>
   <h1 class="question_title">
    557. Reverse Words in a String III
   </h1>
   <p>
    Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.
   </p>
   <p>
    <b>
     Example 1:
    </b>
    <br>
   </p>
   <pre>
<b>Input:</b> "Let's take LeetCode contest"
<b>Output:</b> "s'teL ekat edoCteeL tsetnoc"
</pre>
   <p>
    <b>
     Note:
    </b>
    In the string, each word is separated by single space and there will not be any extra space in the string.
   </p>
  </div>
  <div>
   <h1 class="question_title">
    557. 反转字符串中的单词 III
   </h1>
   <p>
    给定一个字符串，你需要反转字符串中每个单词的字符顺序，同时仍保留空格和单词的初始顺序。
   </p>
   <p>
    <strong>
     示例&nbsp;1:
    </strong>
   </p>
   <pre>
输入: "Let's take LeetCode contest"
输出: "s'teL ekat edoCteeL tsetnoc"<strong><strong><strong>&nbsp;</strong></strong></strong>
</pre>
   <p>
    <strong>
     <strong>
      <strong>
       <strong>
        注意：
       </strong>
      </strong>
     </strong>
    </strong>
    在字符串中，每个单词由单个空格分隔，并且字符串中不会有任何额外的空格。
   </p>
  </div>
 </body>
</html>